package mythread.demo001;

public class MyThread12_6Test_stop {
    public static void main(String[] args) {

        //暴力停止
        try {
            MyThread12_6 thread12 = new MyThread12_6();
            thread12.start();
            thread12.sleep(8000);
            thread12.stop();//ThreadDeath异常，不需要显式捕捉
        } catch (InterruptedException e) {
            e.printStackTrace();
        }


    }
}
